package cn.weiyang.biz;

import cn.weiyang.dao.TypesDao;
import cn.weiyang.entity.Types;
import cn.weiyang.util.SqlSessionFactoryUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

/**
 * Created by Administrator on 2017/7/9.
 */
public class TypesBizImpl implements TypesBiz{

    public List<Types> queryTypes() {
        SqlSession session=SqlSessionFactoryUtil.getSqlSession();
        TypesDao td=session.getMapper(TypesDao.class);
        List<Types> types=td.queryTypes();
        session.close();
        return types;
    }
}
